package com.silence.gankio.core.app

import android.content.Context
import java.util.HashMap

class Core {

    companion object {
        fun init(context: Context): Configurator {
            getConfigurations()[ConfigType.APPLICATION_CONTEXT.name] = context.applicationContext
            return Configurator.getInstance()
        }

        fun getConfigurations(): HashMap<String, Any> {
            return Configurator.getInstance().getCoreConfigs()
        }

        fun getApplication(): Context {
            return getConfigurations()[ConfigType.APPLICATION_CONTEXT.name] as Context
        }
    }

}